import { getData } from './request.js';

// 首页
export const indexAdv = (params) => {return getData('/api/index/indexAdv',params,"POST")};
// 首页 今日精选
export const getGoodsList = (params) => {return getData('/api/mall/getGoodsList',params,"POST")};
// 商品详情
export const getGoodsDetail = (params) => {return getData('/api/mall/getGoodsDetail',params,"POST")};
// 商品评价列表
export const getGoodsCommentList = (params) => {return getData('/api/mall/getGoodsCommentList',params,"POST")};
// 添加商品到购物车
export const addShoppingCart = (params) => {return getData('/api/mall/addShoppingCart',params,"POST")};
// 运费相关 
export const shipInfo = (params) => {return getData('/api/mall/getShipInfo',params,"POST")};
// 创建订单 单商品
export const createOrderByGoodsid = (params) => {return getData('/api/mall/createOrderByGoodsid',params,"POST")};
//创建订单 购物车商品
export const createOrderByCartgoods = (params) => {return getData('/api/mall/createOrderByCartgoods',params,"POST")};
// 微信支付订单
export const orderPay = (params) => {return getData('/api/mall/orderPay',params,"POST")};



// 分类列表
export const getGoodsType = (params) => {return getData('/api/mall/getGoodsType',params,"POST")};




// 知享列表
export const getShareList = (params) => {return getData('/api/Share/getShareList',params,"POST")};
// 知享详情
export const getShareDetail = (params) => {return getData('/api/Share/getShareDetail',params,"POST")};
// 修改收藏
export const collectGoods = (params) => {return getData('/api/mall/collectGoods',params,"POST")};


// 购物车列表
export const cartGoodsList = (params) => {return getData('/api/mall/cartGoodsList',params,"POST")};
// 删除购物车 
export const delShoppingCartGoods = (params) => {return getData('/api/mall/delShoppingCartGoods',params,"POST")};
// 修改购物车商品规格或者数量
export const chgShoppingCart = (params) => {return getData('/api/mall/chgShoppingCart',params,"POST")};



// 我的 code更换session
export const jscode2session = (params) => {return getData('/api/weixin/jscode2session',params,"POST")};
// 手机号授权登录 
export const programLogin = (params) => {return getData('/api/weixin/programLogin',params,"POST")};
// 收货地址列表 
export const getAddressList = (params) => {return getData('/api/user/getAddressList',params,"POST")};
// 保存地址
export const saveAddress = (params) => {return getData('/api/user/saveAddress',params,"POST")};
// 删除地址
export const deleteAddress = (params) => {return getData('/api/user/deleteAddress',params,"POST")};
// 我的优惠券
export const getMyCoupon = (params) => {return getData('/api/coupon/getMyCoupon',params,"POST")};
// 下单用优惠券 
export const getUseCoupon = (params) => {return getData('/api/mall/getUseCoupon',params,"POST")};
// 领券中心
export const getCouponList = (params) => {return getData('/api/coupon/getCouponList',params,"POST")};
// 领取优惠券 
export const getCoupon = (params) => {return getData('/api/coupon/getCoupon',params,"POST")};
// 用户信息
export const info = (params) => {return getData('/api/User/info',params,"POST")};
// 充值配置 
export const getViperSetting = (params) => {return getData('/api/vip/getViperSetting',params,"POST")};
// 充值创建订单 
export const doRecharge = (params) => {return getData('/api/vip/doRecharge',params,"POST")};
// 充值支付
export const VipOrderPay = (params) => {return getData('/api/vip/orderPay',params,"POST")};
// 充值记录 
export const getViperMoneyUseLog = (params) => {return getData('/api/vip/getViperMoneyUseLog',params,"POST")};
// 收藏列表 
export const collectedGoodsList = (params) => {return getData('/api/mall/collectedGoodsList',params,"POST")};
// 商务合作
export const cooperate = (params) => {return getData('/api/Index/cooperate',params,"POST")};
// 推广海报 
export const getPoster = (params) => {return getData('/api/index/getPoster',params,"POST")};
// 订单列表 
export const orderList = (params) => {return getData('/api/mall/orderList',params,"POST")};
// 删除订单
export const deleteOrder = (params) => {return getData('/api/mall/deleteOrder',params,"POST")};
// 取消订单 
export const cancelOrder = (params) => {return getData('/api/mall/cancelOrder',params,"POST")};
// 确认收货 
export const confirmOrderGoods = (params) => {return getData('/api/mall/confirmOrderGoods',params,"POST")};
// 评价商品 
export const commentGoods = (params) => {return getData('/api/mall/commentGoods',params,"POST")};
// 提交售后 
export const submitRefund = (params) => {return getData('/api/refund/submitRefund',params,"POST")};
// 售后日志 
export const refundLog = (params) => {return getData('/api/refund/refundLog',params,"POST")};
// 退货地址 
export const returnRefundAddress = (params) => {return getData('/api/refund/returnRefundAddress',params,"POST")};
// 取消申请售后 
export const cancelRefund = (params) => {return getData('/api/refund/cancelRefund',params,"POST")};
//补充快递信息 
export const submitShipRefund = (params) => {return getData('/api/refund/submitShipRefund',params,"POST")};
// 物流信息 
export const expressinfo = (params) => {return getData('/api/mall/expressinfo',params,"POST")};


